package cn.edu.nju.software.wx12;

import java.util.*;
import java.io.*;

public class User {
	private String id;
	private String name;
	private String password;
	private int authority = -1;
	
	public User(User user) {
		this.id = user.getId();
		this.password = user.getPassword();
		this.authority = user.getAuthority();
	}
	
	public User(String id,String password,int authority) {
		this.id = id;
		this.password = password;
		this.authority = authority;
	}
	
	public User() {
		// TODO Auto-generated constructor stub
	}

	public void setId(String id) {
		this.id = id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public void setAuthority(int authority) {
		this.authority = authority;
	}
	
	public String getId() {
		return id;
	}
	public String getName() {
		return name;
	}
	public String getPassword() {
		return password;
	}
	public int getAuthority() {
		return authority;
	}
	
}
